<form id="settingForm">
  <div class="form-group">
    <label for="form_admin_title">后台标题</label>
    <input type="text" class="form-control" name="admin_title" id="form_admin_title"  placeholder="请输入..." value="<?php echo $admin_title;?>">
  </div>
  <div class="form-group">
    <label for="form_company_name">公司名称</label>
    <input type="text" class="form-control"  name="company_name" id="form_company_name" placeholder="请输入..." value="<?php echo $company_name;?>">
  </div>
  <div class="form-group">
    <label for="form_site_script">网页脚本</label>
    <textarea class="form-control" rows="4" name="site_script" id="form_site_script"><?php echo $site_script;?></textarea>
  </div>
  </form>
  <button type="button" class="btn btn-primary"  data-complete-text="正在提交..."  id="settingSubmit" autocomplete="off">
  提交
  </button>
  
 <script type="text/javascript">
$(function(){
	 $('#settingSubmit').on('click', function () {
		    var btn = $(this).button('loading') // button text will be "finished!"
		    $.post('',$("#settingForm").serialize(),function(result){
				btn.button('reset');
        bs_alert('修改成功！')
			})
	})
})
</script>


 
        